#include "StdAfx.h"
#include "Insets.h"

namespace gfx {

Insets::Insets(void) : left_(0),
			    	   top_(0),
					   right_(0), 
					   bottom_(0)
{
}

Insets::Insets(int left, int top, int right, int bottom) : left_(left),
														   top_(top),
														   right_(right),
														   bottom_(bottom)
{

}

Insets::Insets(const Insets& insets)
{
	*this = insets;
}

Insets::~Insets(void)
{
}

Insets& Insets::operator=(const Insets& rhs)
{
	this->left_ = rhs.left_;
	this->top_ = rhs.top_;
	this->right_ = rhs.right_;
	this->bottom_ = rhs.bottom_;

	return *this;
}

bool Insets::operator==(const Insets& rhs) const
{
	return this->top_ == rhs.top_ && this->left_ == rhs.left_ &&
		this->bottom_ == rhs.bottom_ && this->right_ == rhs.right_;
}

bool Insets::operator!=(const Insets& rhs) const
{
	return !(*this == rhs);
}

} // namespace gfx